package com.chen.product.service.impl;

import com.chen.model.entity.product.Brand;
import com.chen.product.mapper.BrandMapper;
import com.chen.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cgj
 * @date 4/14/25 8:45 PM
 */
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper brandMapper;

    /**
     * 查询全部品牌
     *
     * @return
     */
    @Override
    public List<Brand> findAll() {
        List<Brand> brandList = brandMapper.selectAll();
        return brandList;
    }
}
